cmake_minimum_required(VERSION 3.26)
project(subband-process-demo)

add_definitions(-DUSE_KISS_FFT)

include_directories(
    ${PROJECT_SOURCE_DIR}
    ${PROJECT_SOURCE_DIR}/fft
)

set(SRCS_
    ${PROJECT_SOURCE_DIR}/fft/fftwrap.c
    ${PROJECT_SOURCE_DIR}/fft/kiss_fft.c
    ${PROJECT_SOURCE_DIR}/fft/kiss_fftr.c
    ${PROJECT_SOURCE_DIR}/fft/smallft.c
    ${PROJECT_SOURCE_DIR}/subband_proc.c
)

# add_library(audio_process STATIC ${SRCS_})
# target_link_libraries(audio_process PUBLIC m)
# target_compile_options(audio_process PRIVATE -w -O2)

add_executable(audio_process_test ${PROJECT_SOURCE_DIR}/main.c ${SRCS_})
target_link_libraries(audio_process_test PUBLIC m)

add_executable(audio_clean ${PROJECT_SOURCE_DIR}/cmake_clean.c)